<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import {ref} from 'vue'

const token = localStorage.getItem("token");
console.log(token);
</script>

<template>
  <div v-if="token">
    <header>
        <nav>
          <!-- <RouterLink to="/custrooms">房间查询</RouterLink> &nbsp;&nbsp;&nbsp; -->
          <RouterLink to="/index">返回</RouterLink> &nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/workroom">房间总览</RouterLink> &nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/workcust">入住管理</RouterLink>&nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/worker">员工管理</RouterLink>&nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/dishes">菜品管理</RouterLink>&nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/order">订单管理</RouterLink>&nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/equip">房间物品管理</RouterLink>&nbsp;&nbsp;&nbsp;
          <RouterLink to="/work/item">仓库物品管理</RouterLink>&nbsp;&nbsp;&nbsp;
        </nav>
    </header>
  </div>
  <RouterView />
</template>


<style scoped>
header nav {
  margin: 0 auto;
  text-align: center;
}

</style>